package com.example.baselib.base;

import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;

public abstract class BaseAbilitySlice extends AbilitySlice {


    protected abstract int initResLayoutId();

    @Override
    protected void onStart(Intent intent) {
        super.onStart(intent);
        setUIContent(initResLayoutId());
        initComponent();
    }


    protected void initComponent(){

    }

    @Override
    protected void onAbilityResult(int requestCode, int resultCode, Intent resultData) {
        super.onAbilityResult(requestCode, resultCode, resultData);
    }
}
